<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>get和post</title>
</head>

<body>
    <script type='module'>
        import axios from './Query.js'
        axios.config({
            host:'http://e19.test/js/1.05/',
            type: 'json'
        })
        axios.get('data.php', {
            type: 'json',
            callback(response) {
                console.log(response)
            }
        })

        axios.post('post.php',
            { name: 'wsz' },
            {
                type:'json',
                callback(response) {
                    console.log(response)
                }
            })
    </script>
</body>

</html>